package com.water_work_form.mapper;

import com.water_work_form.entity.BasicFormula;
import com.water_work_form.entity.BasicVolume;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 基础表——取样体积 Mapper 接口
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Mapper
public interface BasicVolumeMapper extends BaseMapper<BasicVolume> {

    @Select("SELECT * FROM basic_volume WHERE name = #{name}")
    BasicVolume getOneByName(String name);

    @Select("SELECT * FROM basic_volume WHERE name = #{name}")
    List<BasicVolume> listOneByName(String name);
}
